WRITE MEMBLOCK WORD
This command will write a word into the specified location of the memblock.
WRITE MEMBLOCK WORD Memblock Number, Position, Word
Memblock Number
Integer
The memblock number must exist or the command will fail
Position
Integer
The Position value is specified in bytes
Word
Integer
The Word must be a value between 0 and 65535
This command does not return a value.
A Word is the term for a datatype consisting of two bytes. The memblock must exist or the command will fail. The Position value is specified in bytes. The Word must be a value between 0 and 65535. The parameters must be specified using integer values.
MemblockNumber=1
MAKE MEMBLOCK MemblockNumber, 1024
WRITE MEMBLOCK WORD MemblockNumber, 0,65535
rem Display data
cls
print "MEMBLOCK EXPRESSION DATA"
if MEMBLOCK EXIST(MemblockNumber)=1
print "memblock:";MemblockNumber
print "exist:";MEMBLOCK EXIST(MemblockNumber)
print "ptr:";GET MEMBLOCK PTR(MemblockNumber)
print "size:";GET MEMBLOCK SIZE(MemblockNumber)
print "word:";MEMBLOCK WORD(MemblockNumber, 0)
endif
if MEMBLOCK EXIST(MemblockNumber)=1 then DELETE MEMBLOCK MemblockNumber
do
loop
end
MEMBLOCKS Commands Menu
Index